import request from '@/utils/request'

// 查询用户列表
export function listUser(query) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: query
  })
}

// 查询部门下拉树结构
export function deptTreeSelect() {
  return request({
    url: '/system/dept/deptTree',
    method: 'get'
  })
}

// 添加角色
export function addUser(data) {
  return request({
    url: '/system/user',
    method: 'post',
    data: data
  })
}
